package com.xn.myproject;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.xn.myproject.ui.ImageWallActivity;
import com.xn.myproject.ui.VideoCountActivity;

public class MainActivity extends Activity implements View.OnClickListener {

    private Button mImageWall;
    private Button mVideoCount;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mImageWall = (Button) findViewById(R.id.image_wall);
        mImageWall.setOnClickListener(this);
        mVideoCount = (Button) findViewById(R.id.video_count);
        mVideoCount.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        Intent intent;
        switch (v.getId()) {
            case R.id.image_wall:
                intent = new Intent(MainActivity.this, ImageWallActivity.class);
                startActivity(intent);
                break;
            case R.id.video_count:
                intent = new Intent(MainActivity.this, VideoCountActivity.class);
                startActivity(intent);
                break;
            default:
                break;
        }


    }
}
